quartz: fix a race condition when waking up the CGRunLoop
authorMichael Natterer <mitch@gimp.org>
Fri, 11 Nov 2011 22:49:21 +0000 (23:49 +0100)
committerMichael Natterer <mitch@gimp.org>
Fri, 11 Nov 2011 22:58:43 +0000 (23:58 +0100)
commite19cbd7a045935a63801bc853746b5225d7de426
treee54bf26154482b7b5db91711f68bdda44e010c50
parent242b1f12f8c182722c0ca3e09310323ee3f111ad
quartz: fix a race condition when waking up the CGRunLoop

Wake up the run loop unconditionally (don't check if it is waiting) because
it might go into waiting state right after we checked for it. Fixes GIMP
startup (which has a lot of GIOChannel I/O but zero NSEvents) from several
minutes to a few seconds.
(cherry picked from commit 0729cdc9a1e8003c41d3ebf20eecfe2d1b29ffbe)
gdk/quartz/gdkeventloop-quartz.c